home *** CD-ROM | disk | FTP | other *** search
- Path: hops.cs.jhu.edu!vincie
- From: vincie@circle.cs.jhu.edu (Michael Ko)
- Newsgroups: comp.lang.c
- Subject: Problems with inline asm in Borland C
- Date: 21 Jan 1996 06:41:23 GMT
- Organization: Computer Science Department, The Johns Hopkins University
- Message-ID: <4dsn6j$snb@blaze.cs.jhu.edu>
- NNTP-Posting-Host: hops.cs.jhu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Keywords:
- I just have a quick question concerning using inline assembler operators
- in Borland C++ 3.0. I'm trying to plot pixels into the graphics memory
- area. However, the assembly code seems to alter either the code of the
- program or values in variables. I've removed the inline assembly and the
- code is fine (but doesn't plot, obviously). If I use inline codes,
- does Borland C automatically save registers and restore them after the
- asm codes? I assume that Borland C does not use the video memory for
- code and data segments. Thanks for any help.
-
- / Michael Ko / "... A monk, a clone, and a Ferengi /
- / vincie@circle.cs.jhu.edu / decide to go bowling together..." /
- / Computer Science Dept. / Data in "The Outrageous Okona" /
- / The Johns Hopkins University / Star Trek : The Next Generation /
- / PGP 2.6 Public Key is available by : finger vincie@circle.cs.jhu.edu /
-
-
-